package com.hula.onion.book.server.spider.platforms.wenshangdai;

import com.hula.onion.book.server.common.CommonResponse;
import com.hula.onion.book.server.common.SpiderCommon;
import com.hula.onion.book.server.utils.HttpUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

/**
 * Created by work on 2018/2/1.
 */
@Component("wenShangDaiSpider")
public class WenShangDaiSpider extends SpiderCommon{
    @Autowired
    private WenShangDaiSpiderHelper spiderHelper;

    private static final String LOGIN_URL="https://www.wsloan.com/login.aspx";
    @Override
    public CommonResponse execute() {
        String loginStr= HttpUtils.post(LOGIN_URL,
                spiderHelper.installRequestParams(loginForm),getHttpContext());
        System.out.println(loginStr);
        return null;
    }
}
